import { Options } from '../entity/Options';
import { getZipName } from './parameter';
import fs from 'node:fs';
import { resolve } from 'node:path';

export function needDecompress(options: Options) {
  let zipName = getZipName(options);
  let originName = `${options.cacheDir}/${zipName}`;
  let targetName = `${originName}`;
  return fs.existsSync(resolve(targetName)) !== true;
}
